

import request from '../utils/services'


// 下面有修改，改成了restfulAPI了
// 无参get 
export function getOne (){
	return request({
		method:'GET',
		url:'/getone',
	})
}

// 有参get
export function getOneId (id = {}){
	return request({
		method:'DELETE',
		url:`/getone/${id}`,
	})
}


// 有固定url参数post
export function getPointId (id = {}){
	return request({
		method:'PUT',
		url:`/getone/${id}`,
		params:id
	})
}

// json参数post
export function getPointData (data = {}){
	return request({
		method:'PUT',
		url:`/getone`,
		data,
	})
}